package com.c8a.stream.controller;

import com.c8a.stream.service.IMessageProvider;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Program: springcloud2022
 * @Description: SendMessageController
 * @Author: c8a
 * @Email: 1912327276@qq.com
 * @Create: 2022-05-12 23:53
 **/


@RestController
public class SendMessageController {
    @Autowired
    private IMessageProvider messageProvider;

    @GetMapping("/sendMessage")
    public String sendMessage() {
        return messageProvider.send();
    }
}
